﻿
namespace Huirui.Cavan.Core.MyException
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.Contracts;
    using System.Linq;
    using System.Runtime.Serialization;

    /// <summary>
    ///     Allows to inform upper layers, that something ill is in the Storage kingdom
    /// </summary>
    [Serializable]
    public class DaoException : Exception
    {
        /// <summary>
        ///     Dao Exception.
        /// </summary>
        public DaoException() { }

        /// <summary>
        ///     Dao Exception.
        /// </summary>
        public DaoException(string message) : base(message) { }

        /// <summary>
        ///     Dao Exception.
        /// </summary>
        public DaoException(string message, Exception inner) : base(message, inner) { }

        protected DaoException(SerializationInfo info, StreamingContext context) : base(info, context) { }
    }
}